package com.xcdh.ittools.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.api.ittools.entity.ToolTpl;
import com.xcdh.ittools.mapper.ToolTplMapper;
import com.xcdh.ittools.service.ToolTplService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ToolTplServiceImpl extends ServiceImpl<ToolTplMapper, ToolTpl> implements ToolTplService {

    @Override
    public List<ToolTpl> findTplByProjectId(Integer projectId) {
        return super.lambdaQuery().eq(ToolTpl::getProjectId,projectId).list() ;
    }
}
